'use strict';

module.exports = appInfo => {
  const config = exports = {};
  config.evn='prod';
  config.cluster={
    listen: {
      port: 7001,
      hostname: '127.0.0.1',
      // path: '/var/run/egg.sock',
    }
  }
  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1526975129074_6030';

  // add your config here
  config.middleware = [];
  config.view={
    defaultViewEngine: 'nunjucks',
    mapping: {
      '.html': 'nunjucks',
    },
  }
  config.news = {
    pageSize: 5,
    serverUrl: 'https://hacker-news.firebaseio.com/v0',
  };
  config.middleware=[
    'robot'
  ]
  config.robot={
    ua:[
      /curl/i,
      /Baiduspider/i,
    ]
  }
  

  return config;
};
